package com.thjk.bdf.preloan.web.enums;


/**
 * 教育情况枚举
 * @author xuanwy
 *
 */
public enum EducationEnum {
	
	Education_1("1","初中及以下"),
	Education_2("2","高中/中专/技校"),
	Education_3("3","大专"),
	Education_4("4","本科"),
	Education_5("5","硕士及以上")
	;
	
    
	private String code;
	private String desc;
	
	
	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getDesc() {
		return desc;
	}


	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	EducationEnum(String code,String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getRetValue(String value) {
		if (value != null) {
			for (EducationEnum nameEnum : values()) {
				if (nameEnum.getCode().equals(value)) {
					return nameEnum.desc;
				}
			}
		}
		return null;
	}
}
